﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SheetDetail.aspx.cs" Inherits="CentalineWeb.SheetDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <title>工单详情</title>
    <style type="text/css">
        .container {
            text-align: center;
            text-align: -moz-center;
            padding-top: 100px;
        }

        .button {
            color: black;
            border: 1px solid #96C2F1;
            line-height: 16px;
            background: url("Images/button_bg.gif");
            margin-top: 10px;
        }
    </style>
    <script type="text/javascript">
        $(function() {
            $("#txtAddress").combotree({
                data: <%=DeptListJson%>
            });
           
            $(".combo-text").each(function() {
                var item = this;
                item.title = item.value;
            })
            if ($("#txtSolutionDesc").attr("readonly") == "readonly") {
                $("#rdbFinish").attr("checked", "true");
               $(":radio").attr("disabled", "disabled");
           }
           
            
        })
    </script>
    
    

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpContent" runat="server">
    <div id="left" style="width: 50%; height: 100%; float: left; border-right: 1px solid gray">
        <table class="table1">
            <tr>
                <td>工单号：</td>
                <td>
                    <span style="position: relative; width: 200px; height: 20px; ">
                        <asp:Label runat="server" ID="lblWorkOrder" />
                       <span style="padding: 1px 5px;position: absolute;top: -10px ;right: -50px;border: 1px solid white;background:#006699;border-radius: 6px;color: white;font-style: italic;line-height: 12px;font-size: 12px;font-weight: bold"><asp:Label runat="server" ID="lblStatusDesc" ClientIDMode="Static" ></asp:Label></span> 
                       <span style="/*padding: 1px 5px;position: absolute;width:100px;height: 12px;right: -200px;border: 1px solid #006699;border-radius: 6px;color: #006699;font-style: italic;line-height: 12px;font-size: 12px;font-weight: bold*/" id="leftTime"></span> 
                    </span>
                </td>
            </tr>
            <tr>
                <td>电脑编号：</td>
                <td>
                    <asp:TextBox runat="server" ID="txtNumber"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>报修种类：</td>
                <td>
                    <asp:DropDownList ID="ddlArticle" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr style="width: 220%">
                <td>报修分行：</td>
                <td>
                    <asp:TextBox ID="txtAddress" class="easyui-combotree" Style="width: 200px" runat="server" ClientIDMode="Static"  />
                </td>
            </tr>
            <tr>
                <td>报修人员：</td>
                <td>
                    <asp:Label ID="lblStaff" runat="server" ReadOnly="True"></asp:Label>

                </td>
            </tr>
            <tr>
                <td>故障描述：</td>
                <td>
                    <asp:TextBox ID="txtTroubleDesc" TextMode="MultiLine" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>报修时间：</td>
                <td>
                    <asp:Label runat="server" ID="lblApplyTime"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>维修评价：</td>
                <td>
                    <asp:TextBox ID="txtEvaluate" TextMode="MultiLine" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <td>电子邮箱：</td>
                <td>
                    <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>

                </td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" ReadOnly="True"></asp:TextBox>

                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
             <tr>
                <td>维修人员：</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlRepairer"/>
                </td>
            </tr>
            <tr>
                <td id="rdbs">
                    <input type="radio" name="rdb" id="rdbFinish" onclick="$('#btnSubmit').val('维修完成');$('#hdfFlag').val('维修完成');" />解决方案：<br/>
                    <input type="radio" name="rdb"  onclick="$('#btnSubmit').val('添加进程报告');$('#hdfFlag').val('添加进程报告');" checked="checked"/>进程报告：
                </td>
                <td>
                    <asp:TextBox ID="txtSolutionDesc" ClientIDMode="Static" TextMode="MultiLine" runat="server" ReadOnly="True"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td  style="float: left; padding-left: 30px"></td> 
                   <td> <asp:Button ID="btnSubmit" runat="server" ClientIDMode="Static" CssClass="button" Text="添加进程报告" OnClick="btnSubmit_Click" OnClientClick="return confirm('确定修改？')" />
                       <asp:HiddenField runat="server" ID="hdfFlag" ClientIDMode="Static" Value="添加进程报告"/>
                   <asp:Button ID="btnCancleWork" runat="server" CssClass="button"  Text="取消报修" Visible="False" OnClientClick="return confirm('确定取消该工单？')"  Width="66px" OnClick="btnCancleWork_Click"   /></td>
            </tr>
        </table>
    </div>
    <div id="right" style="width: 49%; height: 100%; float: right;">
        <h2>该工单历史</h2>
        <asp:GridView ID="gvHistory" runat="server" AutoGenerateColumns="False" Width="100%">
            <Columns>
                <asp:BoundField DataField="Oper" HeaderText="操作人员" />
                <asp:BoundField DataField="desc" HeaderText="说明" />
                <asp:BoundField DataField="remark" HeaderText="备注" />
                <asp:BoundField DataField="opdate" HeaderText="操作时间" />
            </Columns>
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
